package Test2;

interface IA{
    int a = 10;
    default void func2(){
        System.out.println("测试3");
    }
     static void func3(){
        System.out.println("测试4");
    }
    void draw();
}
interface IB extends IA{
     void func();
}
class C implements IA,IB{
    @Override
    public void draw() {
        System.out.println("测试1");
    }

    @Override
    public void func() {
        System.out.println("测试2");
    }
}
public class test2 {
    public static void main(String[] args) {
        C c = new C();
        c.draw();
        c.func();
        c.func2();
    }
}
